package com.dsf.lembda.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.function.Predicate;

/**
 * @Author: Dgg
 * @Date: 2021/3/16 20:56
 */
@Data
@AllArgsConstructor
public class Employee {
	public static Predicate<Employee> ageGreaterThan70 = x -> x.getAge() >70;
	public static Predicate<Employee> genderM = x -> x.getGender().equals("M");
	private Integer id;
	private Integer age;   //年龄
	private String gender;  //性别
	private String firstName;
	private String lastName;
}